#ifndef OPERATELOGAPI_H
#define OPERATELOGAPI_H

#include <QObject>
#include <QMainWindow>
#include <QtNetwork>
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <Utils.h>
#include <config.h>

class OperateLogApi : public QObject
{
    Q_OBJECT
public:
    explicit OperateLogApi(QObject *parent = nullptr);

    QByteArray* list(int pageNum, int pageSize,QString sysMoudle,QString operateUser,QString type,
                     QString status,QString start,QString end);
    QByteArray* clear();
    //删除
    QByteArray* deleteItems(QString ids);
signals:

private:
    QString baseUrl ;
    QNetworkRequest request;
    QNetworkAccessManager *manager ;
    QByteArray *data = nullptr;
    Utils utils;
};

#endif // OPERATELOGAPI_H
